package com.itcast.utils;

import java.util.Random;

public class SaltUtilts {

    public  String getdalt(int n){
        char[] chars = "ABCDEFGHIJKLNMOPQRSTUVWZYXabcdefghijklnmopqrstuvwzyx!@#$%^&*()<>?:|".toCharArray();
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < n; i++) {
            char aChar=chars[new Random().nextInt(chars.length)];
            sb.append(aChar);
        }

        return sb.toString();
    }
}
